﻿namespace JsViewEngine
{
    internal class JurassicEngineInstanceOptions
    {
        private readonly string jsrenderPath;
        private readonly string viewconvertersPath;

        public JurassicEngineInstanceOptions(string jsrenderPath, string viewconvertersPath)
        {
            this.jsrenderPath = jsrenderPath;
            this.viewconvertersPath = viewconvertersPath;
        }

        public string JsrenderPath
        {
            get { return this.jsrenderPath; }
        }

        public string ViewConvertersPath
        {
            get { return this.viewconvertersPath; }
        }

        public override int GetHashCode()
        {
            unchecked
            {
                return ((this.viewconvertersPath != null ? this.viewconvertersPath.GetHashCode() : 0) * 397)
                       ^ (this.jsrenderPath != null ? this.jsrenderPath.GetHashCode() : 0);
            }
        }
    }
}